<template>
  <div class="search">
    <el-autocomplete
      v-model="value"
      :fetch-suggestions="querySearch"
      clearable
      class="inline-input"
      placeholder="请输入医院名称"
      @select="handleSelect"
    />
    <el-button type="primary" :icon="Search">搜索</el-button>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { Search } from '@element-plus/icons-vue'

let value = ref('')

const querySearch = () => {}

const handleSelect = () => {}
</script>

<style lang="scss" scoped>
.search {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

  ::v-deep .inline-input {
    width: 20.833vw;
  }
}
</style>
